
#include"server.h"


void server::run(){


    cout<<"<<<<<<< server start <<<<<<\n";
    socketptr = new sSocket("127.0.0.1",8080);

    socketptr->threadpoolptr=new threadpool();
    socketptr->threadpoolptr->init();

    cout<<socketptr->init()<<endl;
    socketptr->epolldeal();

    socketptr->threadpoolptr->deinit();
    cout<<"<<<<<<< server close <<<<<<\n";
};
